// 用户信息
import { myRequest } from "../utils/request";
/**
 *申请认证公司的详情

 */
export const GetUserCompany = (e) => {
  return myRequest({
    url: `userCompany/read`,
    data: e,
  });
};

/**
 * 用户详情——通对分享码查
 *
 */
export const readByShareCode = (e) => {
  return myRequest({
    url: `WechatUser/readByShareCode`,
    data: { share_code: e },
  });
};

/**
 * 获取
 *
 */
export const getBanner = (e) => {
  return myRequest({
    url: `Banner/index`,
    data: {
      type: e,
    },
  });
};

/**
 * 获取
 *
 */
export const getLoginInfo = () => {
  return myRequest({
    url: `/WechatUser/getLoginInfo`,
    data: {},
  });
};
/**
 * 获取
 *
 */
export const PutSaveParent = (dataForm) => {
  return myRequest({
    url: `/WechatUser/saveParent`,
    data: dataForm,
  });
};

/**
 * 修改
 * @param {Object} dataForm - 表单数据（包含提交的所有字段）
 */
export const putLoginInfo = (dataForm) => {
  return myRequest({
    url: `/WechatUser/save`,
    data: dataForm,
  });
};

/**
 * 推广中心
 */
export const getShareInfo = () => {
  return myRequest({
    url: `WechatUser/getShareInfo`,
    data: null,
  });
};

/**
 * 积分
 * @param {Object} dataForm - 表单数据（包含提交的所有字段）
 */
export const getIntegralInfo = (dataForm) => {
  return myRequest({
    url: `WechatUserBalance/index`,
    data: dataForm,
  });
};

/**
 * 余额
 */
export const getIncomeInfo = () => {
  return myRequest({
    url: `WechatUser/getIncomeInfo`,
    data: null,
  });
};
/**
 * 提现
 * @param {Object} dataForm - 表单数据（包含提交的所有字段）
 */
export const putWithdrawIncome = (dataForm) => {
  return myRequest({
    url: `WechatUserBalance/withdrawIncome`,
    data: dataForm,
  });
};

/**
 * 银行卡认证
 * @param {Object} dataForm - 表单数据（包含提交的所有字段）
 */
export const getSave = (dataForm) => {
  return myRequest({
    url: `WechatUserBank/save`,
    data: dataForm,
  });
};
/**
 * 银行卡列表
 * @param {Object} dataForm - 表单数据（包含提交的所有字段）
 */
export const getSaveIndex = () => {
  return myRequest({
    url: `/WechatUserBank/index`,
    data: null,
  });
};
/**
 * 银行卡
 */
export const getSaveRead = (e) => {
  return myRequest({
    url: `WechatUserBank/read`,
    data: { id: e },
  });
};

/**
 * 问题
 */
export const postSave = (dataForm) => {
  return myRequest({
    url: `Feedback/save`,
    data: dataForm,
  });
};
/**
 * 关键词
 */
export const GetSysLabel = (data, e) => {
  return myRequest({
    url: `SysLabel/index`,
    data: {
      company_type: data,
      sys_label_id: e,
    },
  });
};
/**
 * 保存 修改关键词
 */
export const SysLabelUser = (dataForm) => {
  return myRequest({
    url: `SysLabelUser/save`,
    data: dataForm,
  });
};
/**
 * 协议
 */
export const getRegisterPerson = (dataForm) => {
  return myRequest({
    url: `Pub/getRegisterPerson`,
    data: dataForm,
  });
};
/**
 * 注册公司需知
 */
export const getRegisterCompany = (dataForm) => {
  return myRequest({
    url: `Pub/getRegisterCompany`,
    data: dataForm,
  });
};
/**
 * 保存个人招聘信息
 */
export const PostSave = (dataForm) => {
  return myRequest({
    url: `ZhaoPinUser/save`,
    data: dataForm,
  });
};
/**
 * 招聘关键词

 */
export const GetZhaoPin = (dataForm) => {
  return myRequest({
    url: `SysLabel/indexZhaoPin`,
    data: dataForm,
  });
};

/**
 *申请认证公司
 */
export const PostUserCompany = (dataForm) => {
  return myRequest({
    url: `userCompany/save`,
    data: dataForm,
  });
};

/**
 *电力公司列表

 */
export const GetIndexDian = () => {
  return myRequest({
    url: `userCompany/indexDian`,
    data: null,
  });
};
/**
 *五大六小列表
 */
export const GetIndexJiTuan = () => {
  return myRequest({
    url: `userCompany/indexJiTuan`,
    data: null,
  });
};
/**
 *外贸列表
 */
export const GetIndexWaiMao = () => {
  return myRequest({
    url: `userCompany/indexWaiMao`,
    data: null,
  });
};

/**
 *居间人认证

 */
export const PostUserExtsave = (data) => {
  return myRequest({
    url: `UserExt/save`,
    data: data,
  });
};
/**
 *居间人详情

 */
export const GetUserExt = (data) => {
  return myRequest({
    url: `UserExt/read`,
    data: data,
  });
};

/**
 *报名

 */
export const AgentBaoMing = (data) => {
  return myRequest({
    url: `AgentBaoMing/save`,
    data: data,
  });
};
